/***********************************************************************
 * Module:  ControlTask.java
 * Author:  Administrator
 * Purpose: Defines the Class ControlTask
 ***********************************************************************/

package ishitong.rvims.domain.control;

import ishitong.rvims.domain.inform.InformRule;
import java.lang.annotation.*;
import java.io.Serializable;

/** @pdOid 2ddb1f46-128d-4191-98e5-fea0d1fc0508 */
@SuppressWarnings("serial")
public class ControlTask implements Serializable {
   /** @pdOid a968b054-855d-4b18-a68e-a17c7eb054c0 */
   private String id;
   /** @pdOid f19b0af5-afbb-40e6-8cf6-69f513b0f962 */
   private String name;
   /** @pdOid 499f3b30-7629-482f-97ea-4ee1d106d27a */
   private java.util.Date beginTime;
   /** @pdOid 5f65e236-5d20-49c1-b041-e3b1be9d22a1 */
   private java.util.Date endTime;
   /** @pdOid 9f0f9af8-c243-4b3a-a883-ed3f39abe1f7 */
   private int isUse;
   /** @pdOid 62d6b973-7563-4168-8c78-045065bb4132 */
   private int isAll;
   /** @pdOid e55af498-0869-45a2-81a3-d0bc0e9b31a7 */
   private int isDel;
   
   /** @pdRoleInfo migr=no name=ControlVehicle assc=controlTaskToVehicle coll=java.util.List impl=java.util.ArrayList mult=0..* */
   private java.util.List<ControlVehicle> listControlVehicle;
   /** @pdRoleInfo migr=no name=ControlPoint assc=controlTaskToPoint coll=java.util.List impl=java.util.ArrayList mult=0..* */
   private java.util.List<ControlPoint> listControlPoint;
   /** @pdRoleInfo migr=no name=InformRule assc=association11 coll=java.util.List impl=java.util.ArrayList mult=0..* */
   private java.util.List<InformRule> listInformRule;
   
   
   /** @pdGenerated default getter */
   public java.util.List<ControlVehicle> getListControlVehicle() {
      if (listControlVehicle == null)
         listControlVehicle = new java.util.ArrayList<ControlVehicle>();
      return listControlVehicle;
   }
   
   /** @pdGenerated default iterator getter */
   public java.util.Iterator getIteratorListControlVehicle() {
      if (listControlVehicle == null)
         listControlVehicle = new java.util.ArrayList<ControlVehicle>();
      return listControlVehicle.iterator();
   }
   
   /** @pdGenerated default setter
     * @param newListControlVehicle */
   public void setListControlVehicle(java.util.List<ControlVehicle> newListControlVehicle) {
      removeAllListControlVehicle();
      for (java.util.Iterator iter = newListControlVehicle.iterator(); iter.hasNext();)
         addListControlVehicle((ControlVehicle)iter.next());
   }
   
   /** @pdGenerated default add
     * @param newControlVehicle */
   public void addListControlVehicle(ControlVehicle newControlVehicle) {
      if (newControlVehicle == null)
         return;
      if (this.listControlVehicle == null)
         this.listControlVehicle = new java.util.ArrayList<ControlVehicle>();
      if (!this.listControlVehicle.contains(newControlVehicle))
         this.listControlVehicle.add(newControlVehicle);
   }
   
   /** @pdGenerated default remove
     * @param oldControlVehicle */
   public void removeListControlVehicle(ControlVehicle oldControlVehicle) {
      if (oldControlVehicle == null)
         return;
      if (this.listControlVehicle != null)
         if (this.listControlVehicle.contains(oldControlVehicle))
            this.listControlVehicle.remove(oldControlVehicle);
   }
   
   /** @pdGenerated default removeAll */
   public void removeAllListControlVehicle() {
      if (listControlVehicle != null)
         listControlVehicle.clear();
   }
   /** @pdGenerated default getter */
   public java.util.List<ControlPoint> getListControlPoint() {
      if (listControlPoint == null)
         listControlPoint = new java.util.ArrayList<ControlPoint>();
      return listControlPoint;
   }
   
   /** @pdGenerated default iterator getter */
   public java.util.Iterator getIteratorListControlPoint() {
      if (listControlPoint == null)
         listControlPoint = new java.util.ArrayList<ControlPoint>();
      return listControlPoint.iterator();
   }
   
   /** @pdGenerated default setter
     * @param newListControlPoint */
   public void setListControlPoint(java.util.List<ControlPoint> newListControlPoint) {
      removeAllListControlPoint();
      for (java.util.Iterator iter = newListControlPoint.iterator(); iter.hasNext();)
         addListControlPoint((ControlPoint)iter.next());
   }
   
   /** @pdGenerated default add
     * @param newControlPoint */
   public void addListControlPoint(ControlPoint newControlPoint) {
      if (newControlPoint == null)
         return;
      if (this.listControlPoint == null)
         this.listControlPoint = new java.util.ArrayList<ControlPoint>();
      if (!this.listControlPoint.contains(newControlPoint))
         this.listControlPoint.add(newControlPoint);
   }
   
   /** @pdGenerated default remove
     * @param oldControlPoint */
   public void removeListControlPoint(ControlPoint oldControlPoint) {
      if (oldControlPoint == null)
         return;
      if (this.listControlPoint != null)
         if (this.listControlPoint.contains(oldControlPoint))
            this.listControlPoint.remove(oldControlPoint);
   }
   
   /** @pdGenerated default removeAll */
   public void removeAllListControlPoint() {
      if (listControlPoint != null)
         listControlPoint.clear();
   }
   /** @pdGenerated default getter */
   public java.util.List<InformRule> getListInformRule() {
      if (listInformRule == null)
         listInformRule = new java.util.ArrayList<InformRule>();
      return listInformRule;
   }
   
   /** @pdGenerated default iterator getter */
   public java.util.Iterator getIteratorListInformRule() {
      if (listInformRule == null)
         listInformRule = new java.util.ArrayList<InformRule>();
      return listInformRule.iterator();
   }
   
   /** @pdGenerated default setter
     * @param newListInformRule */
   public void setListInformRule(java.util.List<InformRule> newListInformRule) {
      removeAllListInformRule();
      for (java.util.Iterator iter = newListInformRule.iterator(); iter.hasNext();)
         addListInformRule((InformRule)iter.next());
   }
   
   /** @pdGenerated default add
     * @param newInformRule */
   public void addListInformRule(InformRule newInformRule) {
      if (newInformRule == null)
         return;
      if (this.listInformRule == null)
         this.listInformRule = new java.util.ArrayList<InformRule>();
      if (!this.listInformRule.contains(newInformRule))
         this.listInformRule.add(newInformRule);
   }
   
   /** @pdGenerated default remove
     * @param oldInformRule */
   public void removeListInformRule(InformRule oldInformRule) {
      if (oldInformRule == null)
         return;
      if (this.listInformRule != null)
         if (this.listInformRule.contains(oldInformRule))
            this.listInformRule.remove(oldInformRule);
   }
   
   /** @pdGenerated default removeAll */
   public void removeAllListInformRule() {
      if (listInformRule != null)
         listInformRule.clear();
   }
   
   /** @param newId
    * @pdOid afb67f84-08f4-4dae-9815-cadcc2b877af */
   public void setId(String newId) {
      id = newId;
   }
   
   /** @pdOid 2b60c53a-d1ff-407a-ab1c-f107e0178867 */
   public String getId() {
      return id;
   }
   
   /** @param newIsDel
    * @pdOid ec5fee66-1a86-468e-a682-9b99c0c9fdc4 */
   public void setIsDel(int newIsDel) {
      isDel = newIsDel;
   }
   
   /** @pdOid e7cba0d9-81d1-487f-b7df-b27608d6f248 */
   public int getIsDel() {
      return isDel;
   }
   
   /** @pdOid 2fe41d73-c400-4412-9346-a0595be01a7d */
   public java.util.Date getBeginTime() {
      return beginTime;
   }
   
   /** @param newBeginTime
    * @pdOid 7e80b6f6-7c21-4c66-a36d-b74b49581c30 */
   public void setBeginTime(java.util.Date newBeginTime) {
      beginTime = newBeginTime;
   }
   
   /** @pdOid 2c311e32-bd8e-4ad4-b821-28cbc5f1586a */
   public java.util.Date getEndTime() {
      return endTime;
   }
   
   /** @param newEndTime
    * @pdOid b1ec657b-44f4-462b-af48-829c28524f6a */
   public void setEndTime(java.util.Date newEndTime) {
      endTime = newEndTime;
   }
   
   /** @pdOid 25d5030e-bdcf-49b3-b421-80dbb783fa48 */
   public int getIsUse() {
      return isUse;
   }
   
   /** @param newIsUse
    * @pdOid eb4d77bb-81f3-4e60-8fbd-e02415a41584 */
   public void setIsUse(int newIsUse) {
      isUse = newIsUse;
   }
   
   /** @pdOid 57b022f6-480c-403f-943b-4e85c2887de1 */
   public int getIsAll() {
      return isAll;
   }
   
   /** @param newIsAll
    * @pdOid 1997988c-52f3-4eb8-ac69-e977f83d5e5d */
   public void setIsAll(int newIsAll) {
      isAll = newIsAll;
   }
   
   /** @pdOid 383a06ca-b404-43f8-a378-011fb3a2e01d */
   public String getName() {
      return name;
   }
   
   /** @param newName
    * @pdOid e09f8ae6-015f-4498-87fb-1b046a03ca4d */
   public void setName(String newName) {
      name = newName;
   }

}